{include file="public/header" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
{load href="__PLUGINS__laydate/laydate.js"}
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">认证处理</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">认证状态：</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="{$key}">
                                            <option value="0" {present name="name"}{if condition="$name[$key]=='0'"}selected="selected"{/if}{/present}>未认证</option>
                                            <option value="1" {present name="name"}{if condition="$name[$key]=='1'"}selected="selected"{/if}{/present}>审核</option>
                                            <option value="2" {present name="name"}{if condition="$name[$key]=='2'"}selected="selected"{/if}{/present}>通过</option>
                                            <option value="3" {present name="name"}{if condition="$name[$key]=='3'"}selected="selected"{/if}{/present}>拒绝</option>
                                        </select>
                                    </div>
                                </div>

            {if condition="$key == 'realname_auth'"}
            <div class="form-group">
                <label class="col-sm-2 control-label">姓名：</label>
                <div class="col-sm-9">
                    <input name="data2" type="text"  class="form-control" value="{present name="idcard"}{$idcard.data2}{/present}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">身份证编号：</label>
                <div class="col-sm-9">
                    <input name="data" type="text"  class="form-control" value="{present name="idcard"}{$idcard.data}{/present}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">身份证人像面：</label>
                <div class="col-sm-9">
                    <div class="input-group">
                        <img src="{present name='idcard'}{if condition='$idcard.image_front'}__ROOT__{$idcard.image_front}{else /}__IMG__add_img.png{/if}{else /}__IMG__add_img.png{/present}" id="imageimg" style="max-width: 200px">
                        <input name="image_front" type="hidden"  id="image" class="form-control" value="{present name='idcard'}{$idcard.image_front}{/present}">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-primary" id="tubiao">上传</button>
                        </span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">身份证国徽面：</label>
                <div class="col-sm-9">
                    <div class="input-group">
                        <img src="{present name='idcard'}{if condition='$idcard.image_behind'}__ROOT__{$idcard.image_behind}{else /}__IMG__add_img.png{/if}{else /}__IMG__add_img.png{/present}" id="imageimg2" style="max-width: 200px">
                        <input name="image_behind" type="hidden"  id="image2" class="form-control" value="{present name='idcard'}{$idcard.image_behind}{/present}">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-primary" id="tubiao2">上传</button>
                        </span>
                    </div>
                </div>
            </div>
            {/if}
            {if condition="$key == 'is_identity_authentication'"}
            <div class="form-group">
                <label class="col-sm-2 control-label">身份证人像面：</label>
                <div class="col-sm-9">
                    <div class="input-group">
                        <img src="{present name='auth'}{if condition='$auth.image1'}__ROOT__{$auth.image1}{else /}__IMG__add_img.png{/if}{else /}__IMG__add_img.png{/present}" id="imageimg" style="max-width: 200px">
                    </div>
                </div>
            </div>
            {/if}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
    $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    })
});
function msg(){
    layer.msg("上传成功")
}
function time(){
    laydate(
        {
            fixed: false,
            istime: true, 
            format: 'YYYY-MM-DD hh:mm:ss',
            zIndex: 999999999999,
            isclear: false,
        }
    )
}
function delImg(id){
    $('#id'+id).remove();
}
$("#video").click(function(){
    //  layer.msg('演示站无权操作！')
    // return;
    layer.open({
      type: 2,
      title: '上传视频',
      shadeClose: true,
      shade: 0.2,
      area: ['70%', '60%'],
      skin:'shangchuantup',
      content: '{:url("index/videoUploads")}',
      shift:-1,
      scrollbar: false,
      moveType: 1,
      moveOut: true
    }); 
})
</script>
{include file="public/bottom" /}

